<?php

namespace App\Http\Requests\Admin\ReservationController;

use App\Http\Requests\BaseRequest;

class doRule extends BaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'store_id'=>'required',
            'class_week'=>'required',
            'class_time'=>'required',
            'class_number_people'=>'required',
            'class_base_id'=>'required',
            'class_classroom_id'=>'required',
            'class_quarterly_id'=>'required',
            'advance_cancel_time'=>'required',
            'start_hour'=>'required',
            'start_minute'=>'required',
            'end_hour'=>'required',
            'end_minute'=>'required',
            'is_camp'=>'required',
        ];
    }

    public function messages()
    {
        return [
            'store_id.required' => '請選擇門店',
            'class_week.required' => '請選擇上課周期',
            'class_time.required' => '請選擇時間段',
            'class_number_people.required' => '請填寫上課人數',
            'class_base_id.required' => '請選擇課程名稱',
            'class_classroom_id.required' => '請選擇課室',
            'advance_cancel_time.required' => '請填寫取消分鐘',
            'class_quarterly_id.required' => '請選擇上課季度',
            'start_hour.required' => '請選擇好上課時間',
            'start_minute.required' => '請選擇好上課時間',
            'end_hour.required' => '請選擇好上課時間',
            'end_minute.required' => '請選擇好上課時間',
            'is_camp.required' => '選擇camp',
        ];
    }
}
